
package javaapp2;
import java.util.Scanner;


public class JavaApp2 {

    public JavaApp2() {
    }
 
    public static void main(String[] args) {
        Scanner user_input = new Scanner(System.in);
        boolean user = true;
        String colour;
        int input1, input2, i, result;
        
        if (!user){
            System.out.println("it is false");
        }
        else {
            System.out.println("it is true");
        }
        
        
        System.out.println("Enter your age here: ");
        input1 = user_input.nextInt();
        
        switch(input1){
            case 18:
                System.out.println("You can watch 18+ movie");
                break;
            case 19:
                System.out.println("You can watch 19+ movie");
                break;
            default: 
                System.out.println("You can watch no movie");
        }
        
        System.out.println("Choose a colour: Black, White, Red, Blue");
        colour = user_input.next();
        
        if (colour.equals("Black")){
            System.out.println("You must be a Goth");
        }
        else if (colour.equals("White")){
            System.out.println("You are a very pure person");
        }
        else if (colour.equals("Red")){
            System.out.println("You are fun and out going");
        }
        else if (colour.equals("Blue")){
            System.out.println("You are not a Chelsea fan, are you?");
        }
        else {
            System.out.println("You did not choose any 4 listed colours, shame on you");
        }
        
        System.out.println("Which time table do you want: ");
        input2 = user_input.nextInt();
        
        for(i=1; i<=10; i++){
            result = input2*i;
            System.out.println(i + " times " + input2 + " = " + result);
        }
        System.out.println("Printf odd number from 1 to 10");
        for(i=1; i<=10; i++){
            if ((i%2)!=0){
                System.out.println(i);
            }
        }
        System.exit(0);
    }
}
